MindFusion.Charting for JavaScript Programmer's Guide
Series2D Constructor
See Also
 






Initializes a new instance of the Series2D class.

Namespace: MindFusion.Charting
File: Series2D.js

 Syntax

JavaScript  Copy Code

function Series2D (xValues, yValues, labels)

 Parameters

xValues

Type: List | Array
A list of X coordinates.

yValues

Type: List | Array
A list of Y coordinates.

labels

Type: List | Array
A list of labels.

 Example

The following code creates a new Series2D using arrays with values:

JavaScript  Copy Code
var series = new Charting.Series2D([10, 20, 30, 40], [50, 40, 50, 5], ["Tomatoes", "Cucumbers", "Peppers", "Lettuce"]);
series.title = "Traditional";

 See Also

Series2D Constructor Overload List
Series2D Class
MindFusion.Charting Namespace